/**
 * 
 */
package br.org.bertol.mestrado.engine.optimisation.pso;

import java.util.Comparator;

/**
 * @author contaqualquer
 *
 */
public class OrderParticle implements Comparator<Particle> {

	@Override
	public int compare(Particle left, Particle right) {
		
		if(left.getHeigtht() < right.getHeigtht())
			return -1;
		if(left.getHeigtht() > right.getHeigtht())
			return 1;
			
		return 0;
	}

}
